package xin.petstore.framework.utils;

import com.eloancn.common.constant.Constant;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;

/**
 * Created by lijing on 2016/7/11.
 */
public class CookiesUtil {

    public static String getCookieValue(HttpServletRequest request, String value){
        Cookie cookie= CommonUtils.getCookieByName(request, value);
        if(cookie!=null){
            return cookie.getValue().toString();
        }
        return "";
    }
}
